<template>
  <div class="form-preview-group form-info-preview">
    <div class="form-item__text form-ql-editor ql-container">
        <div class="ql-editor" v-html="_placeHolder || placeholder "></div>
    </div>
  </div>
</template>

<script>
import { previewProps } from '@src/component/form/components/props';
import { PLACE_HOLDER } from './config';
import translate from '@src/component/form/mixin/translate.js'

export default {
  name: 'form-info-preview',
  mixins: [translate],
  props: {
    ...previewProps,
    placeholder: {
      type: String,
      default: PLACE_HOLDER
    }
  }
}
</script>

<style lang="scss">
@import './FormInfo.scss';
.form-info-preview {
  label {
    flex-shrink: 0;
  }
  .form-item__text {
    word-break: break-all;
    background-color: #FFF;
    padding: 3px 5px;
    .ql-editor{
      padding: 0;
      p{
        img{
          float: left;
        }
      }

    }
  }
  .form-ql-editor{
    width: 100%;
  }
}
</style>
